<?php
/**
 * Created by PhpStorm.
 * User: 郝飞
 * Date: 2017/5/16
 * Time: 14:29
 */

namespace plugins\Baywindow;//Demo插件英文名，改成你的插件英文就行了
use Common\Lib\Plugin;

class BaywindowPlugin extends Plugin{

	public $info = array(
		'name'=>'Baywindow',
		'title'=>'图片漂浮广告',
		'description'=>'图片漂浮广告',
		'status'=>1,
		'author'=>'haofei',
		'version'=>'201705'
	);

	public $has_admin=0;//插件是否有后台管理界面

	public function install(){
		return true;
	}

	public function uninstall(){
		return true;
	}

/*	//实现的pageFooter钩子方法
	public function pageFooter($param){
		$config = $this->getConfig();
		if($config['image'])
		{
			$this->assign('config', $config);
			$this->display('content');
		}
	}*/
	//实现的footer钩子方法
	public function pagefooter($param){
		$config=$this->getConfig();
		$this->assign($config);
		$this->display('widget');
	}



}